﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Update.aspx.cs" Inherits="VirtualOrg.Web.FormUpdateOrg" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<div id="main" class="ui-widget-content ui-corner-all" style="padding-left: 30px;">
        <h2 id="lblTitle" runat="server">
        </h2>
        <hr />
        <asp:UpdatePanel ID="pnlMain" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <table style="width: 100%; height: 350px;">
                    <tr>
                        <td>
                            <label for="author">
                                Category:</label>
                            <asp:DropDownList ID="ddlCategory" AutoPostBack="true" CssClass="validate[required] select_field ui-corner-all"
                                runat="server" OnSelectedIndexChanged="ddlCategory_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for="author">
                                Sub Category:</label>
                            <asp:DropDownList ID="ddlSubCategory" CssClass="select_field ui-corner-all" runat="server">
                            </asp:DropDownList>
                            <asp:TextBox ID="txtOtherCategory" Visible="false" runat="server" CssClass="input_field ui-corner-all"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for="author">
                                Name:</label>
                            <asp:TextBox ID="txtName" onchange="CheckOrgname();" runat="server" CssClass="validate[required,minSize[3]] input_field ui-corner-all"
                                Width="400px"></asp:TextBox>
                            - Virtual Org &nbsp;&nbsp;&nbsp; <span id="spanOrgnameCheck" style="font-weight: bold;
                                font-size: 11px;"></span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for="author">
                                Tagline:</label>
                            <asp:TextBox ID="txtTagline" runat="server" CssClass="validate[required,minSize[10]] input_field ui-corner-all"
                                Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for="author">
                                Description:</label>
                            <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" CssClass="validate[required,minSize[50]] input_field ui-corner-all"
                                Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="ddlCategory" EventName="SelectedIndexChanged" />
            </Triggers>
        </asp:UpdatePanel>
        <div class="cleaner h10">
        </div>
        <asp:Button ID="btnCreate" OnClientClick="return CreateOrg();" runat="server" Text="Start here" />
        <div class="cleaner">
        </div>
    </div>
</asp:Content>
